package common.countClass;

import common.Node;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Vector;

public class CIBLine {

    public int id;
    public int predicate;
    public String type;
    public HashSet<String> action;
    public Vector<Integer> count;
    public HashMap<String, historyHalfLine> his;

    public CIBLine(){};
    public CIBLine(Integer id,int pre,String t,HashSet<String> a){
        //初始化时刻 id predicate type action [0] history=null
        this.id=id;
        this.predicate=pre;
        this.type=t;
        this.action=a;
        Vector<Integer> i=new Vector<>();
        i.add(0);
        this.count=new Vector<>(i);
        this.his=new HashMap<>();
        //计算过程中，修改predicate count history
    }
    public CIBLine(Integer id,int pre,String t,HashSet<String> a,Vector<Integer> count,HashMap<String, historyHalfLine> his){
        this.id=id;
        this.predicate=pre;
        this.type=t;
        this.action=a;
        this.count=new Vector<>(count);
        this.his=new HashMap<>(his);
        //计算过程中，修改predicate count history
    }


}